package com.linxianqin.springbootVue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linxianqin.springbootVue.domain.dto.SysUserDTO;
import com.linxianqin.springbootVue.domain.entity.SysUserPost;

import java.util.List;

/**
 * <p>
 * 用户与岗位关联表 服务类
 * </p>
 *
 * @author lxq
 * @since 2020-12-18
 */
public interface SysUserPostService extends IService<SysUserPost> {

    /**
     * 删除用户与岗位关联
     * @param userIds
     */
    void deleteUserPostByUserIds(List<Long> userIds);
    /**
     * 新增用户岗位信息
     *
     * @param userDTO 用户对象
     */
    void insertUserPost(SysUserDTO userDTO);

    /**
     * 删除用户与岗位关联
     * @param userId
     */
    void deleteUserPostByUserId(Long userId);
}
